from django.urls import path
from .api_v1 import *

urlpatterns = [
    path('task/', TaskList.as_view(), name='task_list'),
    path('task/my/', TaskListMy.as_view(), name='task_list_my'),
    path('task/my/asc/', TaskListMyAsc.as_view(), name='task_list_my_asc'),
    path('task/my/des/', TaskListMyDes.as_view(), name='task_list_my_des'),

    path('task/my/status/unc/', TaskListMyStatusUnc.as_view(), name='task_list_my_st_unc'),
    path('task/my/status/unc/asc/', TaskListMyStatusUncAsc.as_view(), name='task_list_my_st_unc_asc'),
    path('task/my/status/unc/des/', TaskListMyStatusUncDes.as_view(), name='task_list_my_st_unc_des'),

    path('task/my/status/run/', TaskListMyStatusRun.as_view(), name='task_list_my_st_run'),
    path('task/my/status/run/asc/', TaskListMyStatusRunAsc.as_view(), name='task_list_my_st_run_asc'),
    path('task/my/status/run/des/', TaskListMyStatusRunDes.as_view(), name='task_list_my_st_run_des'),

    path('task/my/status/com/', TaskListMyStatusCom.as_view(), name='task_list_my_st_com'),
    path('task/my/status/com/asc/', TaskListMyStatusComAsc.as_view(), name='task_list_my_st_com_asc'),
    path('task/my/status/com/des/', TaskListMyStatusComDes.as_view(), name='task_list_my_st_com_des'),
    path('task/<int:pk>/', TaskDetail.as_view(), name='task_detail'),
    path('task/add/', commit_task, name='task_add'),

    path('task/result/download/<int:pk>/', file_download, name='result_download'),
]
